package com.guigu.qingcheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.Date;

@ToString
@ApiModel("")
@Table(name = "tb_login_log")
public class TbLoginLog {
    /**
     * 
     */
    @ApiModelProperty(value = "")
    @NotNull(message="不能为空")
    @Id
    private Integer id;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @Column(name = "login_name")
    private String loginName;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    private String ip;

    /**
     * 
     */
    @ApiModelProperty(value = "")
    @Column(name = "browser_name")
    private String browserName;

    /**
     * 地区
     */
    @ApiModelProperty(value = "地区")
    private String location;

    /**
     * 登录时间
     */
    @ApiModelProperty(value = "登录时间")
    @NotNull(message="登录时间不能为空")
    @Column(name = "login_time")
    private Date loginTime;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return login_name
     */
    public String getLoginName() {
        return loginName;
    }

    /**
     * @param loginName
     */
    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    /**
     * @return ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * @param ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * @return browser_name
     */
    public String getBrowserName() {
        return browserName;
    }

    /**
     * @param browserName
     */
    public void setBrowserName(String browserName) {
        this.browserName = browserName;
    }

    /**
     * 获取地区
     *
     * @return location - 地区
     */
    public String getLocation() {
        return location;
    }

    /**
     * 设置地区
     *
     * @param location 地区
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * 获取登录时间
     *
     * @return login_time - 登录时间
     */
    public Date getLoginTime() {
        return loginTime;
    }

    /**
     * 设置登录时间
     *
     * @param loginTime 登录时间
     */
    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
}